import request from '@/utils/request'

// 查询项目清单
export function projectList(query) {
  return request({
    url: '/safety/product/projectList',
    method: 'get',
    params: query
  })
}

// 查询项目详细
export function getProject(id) {
  return request({
    url: '/safety/product/project/' + id,
    method: 'get'
  })
}

// 新增DXC原料
export function addRm(data) {
  return request({
    url: '/safety/rm',
    method: 'post',
    data: data
  })
}

// 修改DXC原料
export function updateRm(data) {
  return request({
    url: '/safety/rm',
    method: 'put',
    data: data
  })
}

// 删除DXC原料
export function delRm(id) {
  return request({
    url: '/safety/rm/' + id,
    method: 'delete'
  })
}
